package com.zlict.admin.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zlict.common.annotation.Excel;
import com.zlict.common.core.domain.BaseEntity;

/**
 * 物料领用-材料对象 rd_materials
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RdMaterials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 单据编号 
 */
    @Excel(name = "单据编号")
    private String receiptNumber;

    /** 材料编码 */
    @Excel(name = "材料编码")
    private String materialId;

    /** 材料名称 */
    @Excel(name = "材料名称")
    private String materialName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String unit;

    /** 领用数量 */
    @Excel(name = "领用数量")
    private BigDecimal issueQuantity;

    /** 单价(元) */
    @Excel(name = "单价(元)")
    private BigDecimal unitPrice;

    /** 金额(元) */
    @Excel(name = "金额(元)")
    private BigDecimal amount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setReceiptNumber(String receiptNumber) 
    {
        this.receiptNumber = receiptNumber;
    }

    public String getReceiptNumber() 
    {
        return receiptNumber;
    }

    public void setMaterialId(String materialId) 
    {
        this.materialId = materialId;
    }

    public String getMaterialId() 
    {
        return materialId;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setIssueQuantity(BigDecimal issueQuantity) 
    {
        this.issueQuantity = issueQuantity;
    }

    public BigDecimal getIssueQuantity() 
    {
        return issueQuantity;
    }

    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("receiptNumber", getReceiptNumber())
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("specification", getSpecification())
            .append("unit", getUnit())
            .append("issueQuantity", getIssueQuantity())
            .append("unitPrice", getUnitPrice())
            .append("amount", getAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
